/*
 * fml_adc.h
 *
 *  Created on: 2025年4月7日
 *      Author: 22332
 */

#ifndef FML_ADC_H_
#define FML_ADC_H_

extern uint8_t fml_adc_read_once(uint8_t pos);
//extern uint8_t fml_convert_ntc_ad_to_temp(uint16_t adc_temp);
extern void fml_adc_init(void);
extern uint16_t fml_adc_read_bat_ad(void);
extern uint16_t fml_adc_read_tft_ntc_ad(void);
extern uint16_t fml_adc_read_board_ntc_ad(void);
extern uint16_t fml_adc_filter(uint16_t *buf,int len);
extern uint16_t fml_adc_to_bat_voltage(uint16_t adc);
extern uint16_t fml_get_tft_ntc_adc(void);
extern void fml_set_tft_ntc_adc(uint16_t value);
extern int fml_adc_convert_to_temperature(int adc);
extern void fml_ntc_temperature_process(void);
extern void fml_adc_set_pwm_change_stop(int value);
#endif /* FML_ADC_H_ */
